package com.villaday.idf.adapter3;

import android.content.Context;
import android.view.View;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.base.OnAdapterCallbackListener;
import com.villaday.idf.custom.foldtext.FoldTextView;
import com.villaday.idf.model.MaterialRecommendEntity;
import com.villaday.idf.model.RefreshtokenEntity;
import com.villaday.idf.util.SharedPreferencesUtil;

import java.text.SimpleDateFormat;

import byc.imagewatcher.MessagePicturesLayout;

/**
 * 首页动态列表
 */

public class VipDynamicInnetAdapter extends AbsRecyclerViewAdapter<String> {
    private OnAdapterCallbackListener onAdapterCallbackListener;
    private View.OnClickListener onClickListener;
    private MessagePicturesLayout.Callback mCallback;

    public VipDynamicInnetAdapter(Context context,  View.OnClickListener onClickListener) {
        super(context, R.layout.vip_innersdv_home, /*R.layout.item_dynamic_1, R.layout.item_dynamic_2,*/ R.layout.item_page_loading,
                R.layout.item_page_bottom);
        this.onAdapterCallbackListener = onAdapterCallbackListener;
        this.onClickListener = onClickListener;



    }

    public VipDynamicInnetAdapter setPictureClickCallback(MessagePicturesLayout.Callback callback) {
        mCallback = callback;
        return this;
    }



    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, String d, int position) {
        holder.bindSimpleDraweeView(R.id.sdv_homeAd, d);
    }
}
